package com.shujia.four;

public class VariableTest1 {

    public static void main(String[] args) {
        int no = 10;
        String str = "abcdef";
        String str1 = str + "xyz" + no; //” abcdefxyz10”

        str1 = str1 + "123"; //” abcdefxyz10123”
        char c = '国';

        double pi = 3.1415;
        str1 = str1 + pi; //” abcdefxyz101233.1415”
        boolean b = false;
        str1 = str1 + b; //” abcdefxyz101233.1415false”
        str1 = str1 + c; //” abcdefxyz101233.1415false国”

        System.out.println("str1=" + str1);
    }
}
